package com.usian.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.usian.admin.mapper.AdSensitiveMapper;
import com.usian.model.admin.dtos.SensitiveDto;
import com.usian.model.admin.pojos.AdSensitive;
import com.usian.model.common.dtos.ResponseResult;
import io.swagger.annotations.ApiOperation;

import java.util.List;

/**
 * ClassName: AdSensitiveService
 * Author:   WGG
 * Date:    2022-11-2022/11/10-16:46
 * Version: 1.0
 * Description:
 */
public interface AdSensitiveService extends IService<AdSensitive> {

    /**
     * 根据名称分页查询
     * @param sensitiveDto
     * @return ResponseResult
     */
    public ResponseResult findByPageAndName(SensitiveDto sensitiveDto);

    /**
     * 添加敏感词
     * @param adSensitive
     * @return ResponseResult
     */
    @ApiOperation(value = "分页查询")
    public ResponseResult saveSensitive(AdSensitive adSensitive);

    /**
     * 修改敏感词
     * @param adSensitive
     * @return ResponseResult
     */
    public ResponseResult updateSensitive(AdSensitive adSensitive);

    /**
     * 根据id删除
     * @param id
     * @return ResponseResult
     */
    public ResponseResult del(Integer id);

    /**
     * 全查AdSensitive
     * @return
     */
    List<AdSensitive> findAll();

}
